<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body class="tundra">
    <script>
    var dojoConfig = {
	async:true,
	packages: [
	    { name: "rforms", location: "../../../src/rforms" },
	    { name: "rdfjson", location: "../../../src/rdfjson" }]
    };
   </script>
    <script src="../lib/dojo/dojo/dojo.js.uncompressed.js"></script>
    <script type="text/javascript" src="testdata.js"></script>
		
    <style>
       @import "../lib/dojo/dijit/themes/tundra/tundra.css"; /* required when dijit */	
       @import "../src/rforms/view/resources/rforms.css";
    </style>
    <script type="text/javascript">
	  require(['rforms/template/ItemStore',
	           'rforms/apps/Validator',
		   'dojo/domReady!'], 
		   function(ItemStore, Validator) {
			var itemStore = new ItemStore();
	 		itemStore.createTemplate(testdata.templateSrc);
			new Validator({itemStore: itemStore, type2template: {"http://xmlns.com/foaf/0.1/Document": "testTemplate"}, rdfjson: testdata.rdfSrc}, "container");
		});
    </script>
	<div id="container"></div>
  </body>
</html>